//package com.ai.aiagent.demo.invoke;
//
//import jakarta.annotation.Resource;
//import org.springframework.ai.chat.messages.AssistantMessage;
//import org.springframework.ai.chat.model.ChatModel;
//import org.springframework.ai.chat.prompt.Prompt;
//import org.springframework.boot.CommandLineRunner;
//import org.springframework.stereotype.Component;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//@SuppressWarnings("all")
///**
// *@ClassName SpringAiInvoke
// *@Description TODO
// *@Author @O_o  GW__
// *@Date 2025/9/18 15:12
// *@Version 1.0
// */
//@Component
//public class SpringAiInvoke implements CommandLineRunner {
//    @Resource
//    private ChatModel dashscopeChatModel;
//    @Override
//    public void run(String... args) throws Exception {
//        AssistantMessage assistantMessage = dashscopeChatModel.call(new Prompt("你好我是郭威")).getResult().getOutput();
//        System.out.println(assistantMessage.getText());
//    }
//}
